/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package se.superduperbudget.central.core;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Emil
 */
public class EMF {
    private static EntityManagerFactory emf;
    
    public static EntityManagerFactory get() {
        if (emf == null)
            emf = Persistence.createEntityManagerFactory("persistence");
        return emf;
    }
}
